package com.ruoyi.fjtseac.util;

import com.ruoyi.fjtseac.domain.po.*;
import com.ruoyi.fjtseac.domain.vo.*;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

/**
 * po to vo
 * @author jxl
 * @date 2022/7/8 11:00
 */

@Mapper
public interface PoToVoMapper {

    PoToVoMapper INSTANCE = Mappers.getMapper(PoToVoMapper.class);


    PhotoVo toPhotoVo(Photo photo);

    EssayVo toEssayVo(Essay essay);

    VideoVo toVideoVo(Video video);

    AudioVo toAudioVo(Audio audio);

    TypeVo toTypeVo(Type type);

    VolunteerVo toVolunteerVo(Volunteer volunteer);
}
